import request from "@/api/request";
import {
  apiClusterJava,
} from "@/api/root";

// 招聘会列表
export const getZphList = (data) => {
  return request.post(`${apiClusterJava}/api-yp/zph/zphList`, data);
}
// 招聘会详情
export const getZphDetail = (data) => {
  return request.post(`${apiClusterJava}/api-yp/zph/detail`, data);
}

// 招聘会详情页企业列表
export const getZphCompanyList = (data) => {
  return request.post(`${apiClusterJava}/api-yp/zph/getZphCompanyList`, data);
}

// 百职万岗活动 - 活动信息
export const getZphActInfo = (data) => {
  return request.webservice('yp', `${apiClusterJava}/api-yp/open/index`, '/bzwg/getUserInfo', data);
}
// 百职万岗活动 - 领取奖励
export const getZphPrize = (data) => {
  return request.webservice('yp', `${apiClusterJava}/api-yp/open/index`, '/bzwg/receivePrize', data);
}
// 百职万岗活动 - 领取奖品记录
export const getZphPrizeRecord = (data) => {
  return request.webservice('yp', `${apiClusterJava}/api-yp/open/index`, '/bzwg/getPrizeRecord', data);
}
// 百职万岗活动 - 好友助力
export const getZphActAssistance = (data) => {
  return request.webservice('yp', `${apiClusterJava}/api-yp/open/index`, '/bzwg/assistance', data);
}

// 百职万岗活动 - 好友助力信息
export const getZphActAssistanceInfo = (data) => {
  return request.webservice('yp', `${apiClusterJava}/api-yp/open/index`, '/bzwg/getAssistanceInfo', data);
}

// 查询人才是否报名活动
export const checkEnroll = (data) => {
  return request.webservice('mp', `${apiClusterJava}/api-yp/open/index`, '/o2o/checkEnroll', data);
};

// 人才报名活动
export const addPersonApply = (data) => {
  return request.webservice('mp', `${apiClusterJava}/api-yp/open/index`, '/o2o/addPersonApply', data);
};

// 双选会校验是否报名，报名了直接签到
export const checkEnrollAndSign = (data) => {
  return request.webserviceOld('job1001',  'o2o_activity_enroll/checkEnrollAndSign', data);
};

// 双选会未报名信息填写并签到
export const dealEnrollAndSign = (data) => {
  return request.webserviceOld('job1001',  'o2o_activity_enroll/dealEnrollAndSign', data);
};